<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@taglib prefix="mvc" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="fmt" uri="http://www.springframework.org/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <%--公告详情--%>
    <title>人员调度详情</title>
    <script src="../js/jquery/jquery-1.9.1.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/base/base.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/webOffice/fileShow.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/attachment/attachView.js" type="text/javascript" charset="utf-8"></script>
    <style type="text/css">
        table{
            border-collapse: collapse;
            display: table;
        }
        body {
            padding: 0;
            margin: 0;
            font-family: Microsoft yahei,Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;
            width: 100%;
        }

        /* .detailsContent{width: 100%;overflow: hidden;background-color: #f6f7f9;} */
        .detailsContent {
            width: 100%;
            overflow: hidden;
        }

        .detailsContent .title {
            width: 90%;
            margin: 0 auto;
            text-align: center;
            height: 60px;
            line-height: 60px;
            color: #2a588c;
            font-size: 25px;
            font-weight: bold;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .infor {
            width: 100%;
            overflow: hidden;
            height: 40px;
            background-color: #d3e7fa;
        }

        .infor ul {
            list-style: none;
            overflow: hidden;
            float: right;
            margin-top: 10px;
        }

        .infor ul li {
            float: left;
            margin-right: 20px;
            font-size: 14px;
        }

        .infor ul li span {
            font-size: 14px;
        }

        .divContent {
            width: 100%;
        }

        .divContent .divTxt {
            width: 60%;
            margin: 0 auto;
            padding-top: 35px;
            padding-bottom: 30px;
        }

        .divContent .divTxt p {
            font-size: 14px;
            color: #444;
            line-height: 25px;
        }

        .divContent .keyWord span {
            margin-right: 10px;
            color: #2b7fe0;
        }

        .btnImg .margin a {
            margin-right: 20px;
        }

        .divTxt p{
            word-wrap: break-word;
        }
    </style>
</head>
<body>
<div class="detailsContent">
    <div class="title"></div>
    <div class="infor">
        <ul>

        </ul>
    </div>
    <div class="divContent">
        <div class="divTxt">
        </div>
        <div class="divContent1" style="border-top:1px solid #dedede; padding-top:10px;margin: 20px 40px;">

        </div>
    </div>
</div>
<script>
    $(function () {
        var staffId = $.getQueryString('staffId');
        $.ajax({
            url: 'hrStaffInfo',
            type: 'get',
            data: {
                staffId:staffId
            },
            dataType: 'json',
            success: function (res) {
                $('.title').text('人员调度通知');
                var data = res['object'];
                var str = '';
                str = '<li>' +
                        '<span>发布部门：</span>' +
                        '<span style="padding-right:20px">' + data['deptName'] + '</span>' +
                        '<span>发布人：</span>' +
                        '<span style="padding-right:20px">' + data['createName'] + '</span>' +
                        '<span>发布时间：</span>' +
                        '<span style="padding-right:20px">' + data['lastUpdateTime'] + '</span>' +
                      '</li>';
                $('ul').append(str);
                var txt = '';
                txt = '<h3>' + data['staffName'] + '：</h3>' +
                        '<h4>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red">' + data['createName'] + '</span>&nbsp;&nbsp;已经将您调度到地点：&nbsp;&nbsp;<span style="color: red">' + data['locationAddressName'] + '</span>&nbsp;，&nbsp;项目：&nbsp;&nbsp;<span style="color: red">' + data['projectNAME'] + '。</span>&nbsp;&nbsp;</h4>';
                $('.divTxt').append(txt);
            }
        });
    });
</script>
</body>
</html>

